<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg" mode=""></image>
		<view class="info">
			<view @click="phone">联系电话：10086111213(点击拨打)</view>
			<view>地址：广东省广州市番禺区广州大学城外环西路外环东路外环北路100号</view>
		</view>
		<map class="map" :latitude="latitude" :longitude="longitude" :scale="scale" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude:110.922577,
				latitude:21.679218,
				scale:16,
				markers:[
					{
						longitude:110.922577,
						latitude:21.679999,
						iconPath:'../../static/logo.png',
						width:60,
						height:60
					}
				]
			}
		},
		methods: {
			phone(){
				uni.makePhoneCall({
					phoneNumber:"1008611"
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact{
		.img{
			width:750rpx;
			height: 320rpx;
		}
		.info{
			padding:10rpx 20rpx;
			font-size: 30rpx;
			view{
				line-height: 80rpx;
				border-bottom: 1px solid #eee;
			}
		}
		.map{
			width:750rpx;
			height: 750rpx;
		}
	}
</style>
